package cn.neusoft.query;

import lombok.Data;
import lombok.ToString;

/*
BusinessQuery extends BaseQuery
模块条件                 基础(分页)条件
即拥有了分页条件  也有自己的搜索条件

select * from t_business
where 1=1 and businessName like concat('%',?,'%')
limit ?,?

 */
@Data
public class BusinessQuery extends BaseQuery{

    private String businessName; //商家名称模糊搜索的条件
    private String businessAddress;//商家地址模糊搜索的条件

    @Override
    public String toString() {
        return "BusinessQuery{" +
                "pageNow='"+ getPageNow() + '\'' +
                ", pageCount='"+ getPageCount() + '\'' +
                ", businessName='" + businessName + '\'' +
                ", businessAddress='" + businessAddress + '\'' +
                '}';
    }
}
